gl renderer: Fix debug color output
authorTimm Bäder <mail@baedert.org>
Sat, 14 Dec 2019 13:33:17 +0000 (14:33 +0100)
committerTimm Bäder <mail@baedert.org>
Tue, 7 Jan 2020 16:27:15 +0000 (17:27 +0100)
gsk/gl/gskglrenderer.c

index 979847cbaf73f03a3c846c09eaba1e15d82f35af..1d1e3b93e3005588b484edbef046fa1433915e1d 100644 (file)
@@ -2479,7 +2479,7 @@ apply_color_op (const Program *program,
                 const OpColor *op)
 {
   OP_PRINT (" -> Color: (%f, %f, %f, %f)",
-            op->rgba.red, op->rgba.green, op->rgba.blue, op->rgba.alpha);
+            op->rgba->red, op->rgba->green, op->rgba->blue, op->rgba->alpha);
   glUniform4fv (program->color.color_location, 1, (float *)op->rgba);
 }
 
@@ -2540,11 +2540,8 @@ static inline void
 apply_inset_shadow_op (const Program  *program,
                        const OpShadow *op)
 {
-  OP_PRINT (" -> inset shadow. Color: (%f, %f, %f, %f), Offset: (%f, %f), Spread: %f, Outline: %s",
-            op->color[0],
-            op->color[1],
-            op->color[2],
-            op->color[3],
+  OP_PRINT (" -> inset shadow. Color: %s, Offset: (%f, %f), Spread: %f, Outline: %s",
+            gdk_rgba_to_string (op->color),
             op->offset[0],
             op->offset[1],
             op->spread,
@@ -2620,8 +2617,7 @@ static inline void
 apply_border_color_op (const Program  *program,
                        const OpBorder *op)
 {
-  OP_PRINT (" -> Border color (%f, %f, %f, %f)",
-            op->color[0], op->color[1], op->color[2], op->color[3]);
+  OP_PRINT (" -> Border color: %s", gdk_rgba_to_string (op->color));
   glUniform4fv (program->border.color_location, 1, (float *)op->color);
 }